package com.example.model.log;

import com.alibaba.fastjson.annotation.JSONField;
import com.example.db.annotations.ID;
import com.example.db.annotations.Table;
import com.example.db.annotations.TableField;
import liquibase.pro.packaged.S;

import java.util.Date;

/**
 * @Classname LogModel
 * @Description TODO
 * @Date 2022/8/14 12:06
 * @Created by XiongXiong
 * @Author: X.I.O
 */
@Table("sys_visit_log")
public class LogModel {

    @ID
    private Integer id;

    @TableField("address")
    private String address;

    @TableField("args")
    private String args;

    @TableField("userid")
    private Integer userid;

    @TableField("addressname")
    private String addressname;

    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @TableField("createdate")
    private Date createdate;

    @TableField("username")
    private String username;

    @TableField("ipaddress")
    private String ipaddress;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getArgs() {
        return args;
    }

    public void setArgs(String args) {
        this.args = args;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public String getAddressname() {
        return addressname;
    }

    public void setAddressname(String addressname) {
        this.addressname = addressname;
    }

    public Date getCreatedate() {
        return createdate;
    }

    public void setCreatedate(Date createdate) {
        this.createdate = createdate;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getIpaddress() {
        return ipaddress;
    }

    public void setIpaddress(String ipaddress) {
        this.ipaddress = ipaddress;
    }
}
